package com.dabaozhan.modules.wx_app.dao;

import com.dabaozhan.modules.wx_app.entity.SiteCategoryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author houzhong
 * @date 2018-12-26 11:22
 *
 * 物品分类
 */

@Mapper
public interface SiteCategoryMapper extends BaseMapper<SiteCategoryEntity> {
    /**
     * 返回集合
     * @param siteCategory
     * @return
     */
    public List<SiteCategoryEntity> findBySiteCategoryList(SiteCategoryEntity siteCategory);
    
    /**
     * 通过userId查询所有品类
     * @param userId
     * @return
     */
    public List<SiteCategoryEntity> getCategoryListByUserId(@Param("userId")String userId);
}
